import Vue from 'vue'
import Vuex from "vuex"
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        count: {name: "123"}
    },
    mutations: {
        updateCount(state, data){
            state.count = data
        },
    },
    actions: {
        updateCountAsync(context, data) {
            context.commit('updateCount', data)
        }
    }
})

export default store